<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
%>
<!DOCTYPE html>
<html>
  <head>
    <title>登入</title>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <link rel="stylesheet" type="text/css" href="<%=path %>/static/js/easyui/themes/default/easyui.css">
	<link rel="stylesheet" type="text/css" href="<%=path %>/static/js/easyui/themes/icon.css">
  	<link href="<%=path %>/static/css/frame.css" rel="stylesheet" type="text/css" />
	<script type="text/javascript" src="<%=path %>/static/js/jquery.min.js"></script>
	<script type="text/javascript" src="<%=path %>/static/js/easyui/jquery.easyui.min.js"></script>
  	<script type="text/javascript">
  		var loginAddRegDialog;
  		$(function(){
  			loginAddRegDialog = $("#loginAddRegDialog").window({
  				modal:true,
  				shadow: true,
  				closed: false
  			});
  		})
  		
  		function formLogin(){
  			$("#loginForm").submit();
  		}
  		
  		function cancel(){
  		}
  		
  	</script>
  </head>
  
  <body>
    <div id="loginAddRegDialog" collapsible="false" minimizable="false"
        maximizable="false" closable="false" title="登入" style="width: 300px; height: 150px; padding: 5px;
        background: #fafafa;">
        <div class="easyui-layout" fit="true">
	    	<div region="center" border="false" style="padding: 10px; background: #fff; ">
		    	<form id="loginForm" method="post" action="<%=path %>/admin/login.do">
			    	<table>
			    		<tr>
			    			<th align="right">用户名</th>
			    			<td>
			    				<input type="text" name="userName" class="easyui-validatebox" missingMessage="用户名不能为空" data-options="required:true">
			    			</td>
			    		</tr>
			    		<tr>
			    			<th align="right">密码</th>
			    			<td>
			    				<input type="password" name="password" class="easyui-validatebox" missingMessage="密码不能为空" data-options="required:true">
			    			</td>
			    		</tr>
			    	</table>
		    	</form>
	    	</div>
	    	<div region="south" border="false" style="text-align: right; height: 30px; line-height: 30px;">
                <a id="btnEp" class="easyui-linkbutton" href="javascript:formLogin();" >登入</a> 
                <a id="btnCancel" class="easyui-linkbutton" href="javascript:cancel();">取消</a>
            </div>
        </div>
    </div>
  </body>
</html>
